<!--
 * @Author: Dorange.Wang
 * @Date: 2021-07-20 14:52:53
 * @LastEditors: your name
 * @LastEditTime: 2021-07-20 16:04:31
 * @Description: file content
-->
<template>
  <van-field :label="instance.__config.label">
    <template #input>
      开发中...
    </template>
  </van-field>
</template>

<script>
import { widgetMixin } from "../mixin";
export default {
  name: "HanUpload",
  mixins: [widgetMixin],

  data() {
    return {
      value: "",
    };
  },

  watch: {
    values: {
      handler: "handleValuesChange",
      immediate: true,
      deep: true,
    },
  },

  computed: {
    isImage() {
      const { tagName } = this.instance;
      return tagName === "hlFileImage";
    },
    isFile() {
      const { tagName } = this.instance;
      return tagName === "hlFile";
    },
  },

  methods:{
    handleValuesChange(values) {
      this.value = values[this.field]?.split(',');
    },
  }
};
</script>

<style></style>
